made createevent template modular