removing active class on exit