How to configure create and view events