add observer pattern in textboxChanged and addVocabularyData