added devise views, added flash messages div and events for posts and comments controllers