Modified the modal close action to use the already existing 'close_modal' function.