refactoring

Creating a new module for managing modal sata