created a status function and finished task page