added creating pages functionality, all tests pass