Yes, I believe both are in the same Terminal, but even if they are not you shouldn´t have to go through customs. And the terminals are connected through the airside, not difficult at all to go to one from the other.
There´s a RCC on Terminal 1 (from where UA leaves), not sure if it will be open the time you get there. Definately bring your own entertainment.