add method to format list for gui tableView model