added closeable option