Proper selection of selected folder in sidebar