Adding class with closeable window