update the status