implemented flash message