added flash messages per category

Using flash messages per category at the bottom of the page