factor out smoothScroll
custom context menu and its hook