added showing creating events function in demo