adding closing </tr> tag