use name instead of class for selection of inputs
modified it to use a table