adding and removing active class randomly