Treaty of Guadalupe Hidalgo was signed