logic for iframe, modal markup