Move codes to handle page scroll from chrome to content