implement :saved_previous_url for cancel buttons