added search and fixed a bug with selecting the root when uploading