This idea is simple: add a modal to the DOM when ever you need a new modal with dynamic content.