improve tag input and search