added MenuItem and AutoCompleter classes and changed controller to work with these