implemented expandable menu list for buttons in wm