I have successfully checked and fixed the issue with the modal. The delay in the pop up that was causing incorrect data to be displayed has been rectified. I tested the modal several times to make sure that it was functioning correctly. The results of my tests showed that the modal was now displaying the correct data.