assign datasource and delegate for table view