added template for table view