refactor pagedscrollmenu