execute_run_after function

Called internally by the shiny server when navigating to the next page.