TODO: make button toggling actually toggle input value rather than just UI