Moved cart related output functions to right file