Added onClose that alerts if annotation has not been saved.