change method of file's search in MainActivity