add change status function