Added dynamic active class to <a>.