Update status function