added listeners to checkboxes and converts input in textboxes to strings