add state loading