fixing modal issue with display: none; on load.