Deligate button click event

I hit this issue where elements rendered after the initial page load weren't picking up the 'click' event. Changed it so the click is delegated from the document instead so it works for dynamic `data-open-modal