Add initial loading logics

too bad my d3 data binding is broken