Update tswidget to latest
clean up graph snippet, validation