exit confirm dialog and BNF elements highlighting