fixed zoomToContainer, cleaned up indentation