Cleanup unecessary variables
Cleanup page transition and root page handling