moved function to load modal content to assets