Refactoring

Refactoring related to view, controller and application creation.