add refresh completed tasks functionality