Fixed active events UI code a bit