support closable for tab. Fixes #340