updating layout to use table