store id correctly in tr tag