Creates the controller portion