added user model
event handling bugfix