edit zoom function