save_before_switching_to_ajax