added dynamic page back/forward scrolling