Add create event and view event function
Merge pull request #2 from xiaoma318/master

Add create event and view event function