Wired deletion
Added confirm dialog for query deletion