modified layout to add top and bottom borders