update the way flash messages are set and get
delete dependency with Entity Contact