refactoring mvc-concept.