adding search and sort