Converted template to table view