allow modal.hide to return value