Customize notebook and support detaching tabs