Created global function to update modal content

Couldn’t get modal to show up for map visualization. STILL NEEDS TO BE
FIXED!!