refactored controller data, implemented 2-way binding for text box vs check boxes