update zoom to support pane or window