Added a system for changing 'Pages' dynamically