implementing zoom events