wire up events model and partial