prevent removal of item from UI if modified too.

Signed-off-by: Jim Klo <jim.klo@sri.com>