added flash messages in header files