Another utility method, to close modal