adding active class to dashes