implemented zoomToFit