Changed hide to dismiss