rename variable and delete unnecessary dialog fragment