basic xml implementation, and preview records box