viewer2 update window positioning