Updated checkout to use resolve in the ui router