correctly switch hidden inputs when using type selection