modify advanced doc search and tag creation