Adapted many of the pages to the mvc framework.