fix script order to get code to load correctly
change modal to a template
share button point to route
share button for heatMap
rework old code