Added flash template code. Redirect and Render.