added tableview and logic for no cells