added zoomToSelected() functionality.