Change how modal was being closed.