Fix bugs for initial modal functionality.
Add custom event creation and firing to modal 1.
Add background option handling for modal.