change active class code