improved the folder toggling