Added license
Added events for onCreate and onConfirm