created the change status function
change the task status when save the new status
now the history tab show the task histories