flash message and data refresh