Added  margin and spacing to cell rendering.