handleZoom function implemented