refactored event styling