Set the application object into the controller too.