improve autocomplete popup

@lennartcl