fixed deletion dialogue