add AMD-compatible modal