View is edited for XML file export.
Some refactoring is made.