add mark task as completed method