adds attributes and tempaltes
adds attributes and tempaltes