add onClick to tool-element textTool in index.html