Using a template for the role accordion element to simplify dom manipulations