changed selected folder hide/show behaviour