Updated event handling on home page