added edit dialog, removed stuff from prefs