Made updateFolderContentVisibility work