make table view controller work