removed commented lines and fixed app_controller