moving the flash messages to new action file. moved out from the layouts file