adds polygon to map
fixes conflict
moves around client side code