switched from dialog to activity in edit mode. Added edit mode for all words. Some code refactoring.