shapes added and polygon construction on the calculate event