Generalization of event management for web app