improvements to pan zoom window