Typeahead AJAX implementation
Controller refactoring