table data to view