clicking search button when no folder is clicked will search in rootFolder