Added flash templates to all setflash()