added finish dialog
added finish dialog