added toggle for draw button. Started using polygons instead of rects when searching