change code for page manipulation