Implemented the UI scheme and defined the event model and event view.