Made notExists dialog reusable