add active class on update