Refactoring mainAction on Dashboard controller and title page