Refactoring allowing the item scrolling to be used by other menus as well