selectedPage now populates