removed unused code and added id generation for ConditionValueViewModel