updates popovers to modals to work better on mobile