add set_tab method to action_controller