update controller with open conditional