refactor and thinking of using xpath...
moved from jquery to xpath… hopefully right choice