some js changes to refresh data on change of map