Better event handling for package manager