Refactoring views
Adding session flash messages