Collapse menu on item click