added a base controller class for all model controllers to use