ui/responsiveMenu: move out logic to show and hide list into methods so they can be called externally or overridden