base controller class method to load a model