making inputId global