add template to component