Added function to display modal after the document loads to avoid flicker bug in Chrome