add routes for content other than that stored in main. added redirect when editted pages are submitted. added flash messages