Refactored auto complete text so that it is mvc