working on flash messages