implemented zoomToSelected