replacing tags part with server rendered html when adding new tag