add task check in viewer