added panning and zooming along y axis