scroll updating on pageswitch