created a new main view
started to add an event api