adding dynamic tablerow funcionality