offer cell and tableview logic