added template view and collection view