made grid use xml resources