add on-click contract detail call to each tr of contract tables