remove unnecessary dialog