Data discard confirmation functionality added