improve the way page content is being pulled from the database and add some minor content editing functionality