added templates (currently its not working)