create a new delegate protocol in order to update both the table view and the collection view.