put datalib switching fully into react
Finished rendering yaaaay. PS: switch to rendering using tables asap.