added dynamic creation of the table rows