fix importation of templates
factor stuff & add subheader component