Changes to view files to allow flash messages