added XML parser for panels