fix for Firefox also get the modal dialog images showing up to right data-id