added event and scan models and routing for events