removing queries from tabs when deleted