Refactored ApplyTemplateButton into its own CustomComponent.