convert table to bs rows