Added titles on the pages and also added auto remove functionality on flash messages.