set selected state on parent menu items