add search function; added toolbar with search input, collapse and expand buttons