Componentize tabs in template