commented out addEvents function to temporarily remove destorying the modal window.