Added confirm to close