Many bug fixes. Added dialog_list query