changed title to name and added table sort