data libraries fix for modal handling and folder creation