now the previously selected file is correctly highlighted