creation of the controller