Refactoring Controller MVC