Remake functions App_controller