pre deletion of ui