added some tableview functionality.