added in ability for esc button to close the modal