change URL once state is loaded