refactoring and first steps mvc