working on bug with zoom and pan overlapping