adding method to add sidebar child element to template element