improve query click and check box
little changes for vig
add CSS tags
change if for plotDist hover and click to avoid error