Fix NPE when XML or JSON data is empty
[refactor] remove unnecessary classes and icons
add snapshot