Fixed Event registration to use onresume