update contents after cancel