change actions of delete to work fine with all models