fixed timing of events plus styling