added searchable table function