search in file viewer working correctly