panning and zooming improvements