dialog added for discard