collapse menu on state change