the app should be created before all the controllers.
now this can be added.