corrected apps_controller