create view for event