Actually link modals to popup scope.