Refactor output from dynamic menu to listselection