added events model and handler