changed hide to cancel