make a reusable base tmeplate
prettify flash and error messages