query dialog added