refactoring put files in representative folders in order to follow the mvc pattern