enabled to close and reopen