Extract events names

To have more flexibility, use constants is a better way IMO.