implemented dialog delete API