improved the demo for autocomplete