completes typeahead functionality and styling