Added flash messages and updates