change modal setup code to hide in-page modal content rather than remove it from the DOM
Merge pull request #1204 from tuff-ghost/issue_3380f

2066 & 3380: hide in-page modal content rather than removing it