added category-input directive to addTemplate