Controller created for MVC pattern