Make the close button on the top-right of modals functional.