Move createEvent success and fail handler to promise handler