updated base template to correctly display flash messages