Add flash messages to pages