Adds pageList and switchPage to replace nextScreen and prevScreen