found and implemented another solution to the border collapsing problem by adding margin to the tables, this solution works