added event to add a class for some times