P0440 is an EVAP System Malfunction - sounds like the evap hose on the front right of the engine was not connected to the t valve properly. Search for vacuum leaks in that area and follow the hose back behind the engine where it could also have been cut going into the hardline when the manifold was peeled back to install the gaskets.