add reloadData()

swap to new data, and render.
reformat code
update