Implemented flash messages for page controllers