fix todo item class name logic