removed unnecessary dialog