add state provider