See this example how blocks can be placed in a modal so they are updated when the modal is opened.