Problem solving for table view controller