Add logic to display cells.