fixes the events div