Creates the controller first