Implemented dependency injections in all of the controllers.