front end for deleting