specs and optimizing tag functionality and fixing autocomplete issue