creates controller class for location