added flash message disappearing