simplified the tableview cell code by removing enum logic