added some code for page scroll