fixed collapsing/clearing behavior for menus and checkboxes