add flash message support