add search and ordering