change it to use html table instead of svg rect and text