added flash messages, added grid and detail styles and more cleanup