(for chainbit) logic for activating textboxes with checkboxes