added orig app controller to base controller, fixed model.inherits() method when retieving the model