refactoring of keyword, keyworddetector, rootviewmanager and titlebarviewmanager