Make sampling actually work, when you click on the map
update prerequisities, make grid refresh fn return something so that Flask doesn't complain