Move addOptionItem call to dialog class.
Don't encourage calling new without actually using the pointer. Its just a way to leak memmory.