add code templates for automatic component generation