Added flash into the template