Added flash message support along with rendering on sync