replace goTop method to scrollIntoView