handling doc-specific modal styling