added buttons for dealing with the polygon drawn
closing the poly when the respective button is clicked