updated close action