Refactored modal as an Alloy component.