Fixed almost everything now

Access violation when trying to render in UIPage.cpp.
Dunno why.