add "close" to flash