added template code for the Table View and Collection View