added a folder search function