adding task reset functionality