Allow popup to work in modals