Refactored rendering pages into the way I actually intended the framework to be used; bugfixes