Events and Actions: register events that triggers actions.