Refactor autocomplete, add menuitem model, view, collections