Added panning, zooming and dragging