added angular and backend code for template system