events: cleaned up code formatting