Moved child page states to constants
Changed how states for child pages are handled so they're not tightly coupled to the application.