fixed the page display except for page 1