update zoom-end function