events model added and working