resized window and set scroll back to top when changing post pages