MVC controller class implementation