Added overwrite warning dialog function for respecting text markup