added pop-ups for duplicate error in add/edit dialogs;