Unified tab template usage for document tabs.
fixed #16