made session flashes closeable with configuration