refactor json & XML data format + html rendering system (not fully functional)