added switching between pages and saving and loading and stuff