Adding 'view xml' toggle button