Incorrect static var access fix, moved PageRendering to its own class

Change-Id: I3b074ade5dc9f4e61508314c1985b67683519678