Modified ApplicationsController and ApplicationStatuesesController