GUI: Fix bugs + xml viewer