working on the polygon view