validate if group already exists, hide popover when esc key is hit