correctly refreshing the selected folder