adding method update task status and time stamp