added detail input type conditionals