reattach the links inside the modal and prevent double backdrop