adding zoom and pan