add IDs to inputs