autocomplete tags, fix bug with refresh