added more funtionality to the new table viewer.