added page name checking and a simple route to render the markdown