updte code for page list