Add custom events plainmodalopen and plainmodalclose