added flash messages and helper fcn
added routes