updating the status