fix a bug not scrolling when open a new page