finish tag input