Implemented the XML layout