edit query and datalist