update zoom level variable