         ancestorId = rule.question_id
         # text, textarea, select
         if $triggerElement.length < 2
-          #self.setDefaultState(rule.question_id, $triggerElement, condition.operator, condition.answer)
-          self.hideShowQuestions(hideQuestions, ancestorId)
+          self.hideShowQuestions(hideQuestions, ancestorId, $ruleElement)
           self.bindConditions(rule.question_id, $triggerElement, condition.operator, condition.answer)
         # radio buttons
         else
           if $triggerElement.is(":checkbox")
             # limit binding of each checkbox if data-label-value and answer are the same-kdh
             $triggerElement = $triggerContainer.find(".form-control[data-label-value=" + condition.answer + "]")
-            self.hideShowQuestions(hideQuestions, ancestorId)
+            self.hideShowQuestions(hideQuestions, ancestorId, $ruleElement)
             self.bindConditions(rule.question_id, $triggerElement, condition.operator, condition.answer)
           else
             for element in $triggerElement
               do (element) ->
-                #self.setDefaultState(rule.question_id, $(element), condition.operator, condition.answer)
-                self.hideShowQuestions(hideQuestions, ancestorId)
+                self.hideShowQuestions(hideQuestions, ancestorId, $ruleElement)
                 self.bindConditions(rule.question_id, $(element), condition.operator, condition.answer)
-
     return
-
-  # set the default hide show conditions
-  setDefaultState: (ancestor_id, $triggerElement, operator, answer) ->
-    self.hideShowQuestions(self.evaluateCondition(operator, answer, self.getValue($triggerElement)), ancestor_id)
 
   #bind conditions to question
   bindConditions: (ancestor_id, $triggerElement, operator, answer) ->

            # match type any (or)
            if matchType == "any"
              if _.indexOf(conditionMetTracker, true) > 0
                self.hideShowQuestions(false, ancestorId)
              else
                self.hideShowQuestions(true, ancestorId)
            # match type all
            if matchType == "all"
              if _.indexOf(conditionMetTracker, false) == -1
                self.hideShowQuestions(false, ancestorId)
              else
                self.hideShowQuestions(true, ancestorId)
          else
            self.hideShowQuestions(self.evaluateCondition(operator, answer, self.getValue($triggerElement)), ancestor_id)
    return

  #hide or show questions
  hideShowQuestions: (hide_questions, ancestor_id) ->
    container = $("[data-question-id=" + ancestor_id + "],[data-ancestor=" + ancestor_id + "]").closest(".form-entry-item-container")
    if hide_questions
      container.addClass("conditional-logic-hidden")
      self.clearQuestions(container)

        condition = this
        #console.log condition
        questionId = condition.question_id
        $triggerContainer = $ruleElement.closest('.panel').find("[data-question-id=" + questionId + "]")
        # getting element on edit and new page
        $triggerElement = $triggerContainer.find(".form-control")
        # getting element on show page
