Make X button close modal