adding class to triggering element