added flash message support for new view