injecting the necessary items into the controller.