Can't figure out to connect the tableview with the code