how to show and hide input fields based on checkbox selection