delete dialog and edit Activity