updated the UI to autofit the content in cells