added a close action