added product nid to query for edit link from cart
wrapped delete call in layers of session checks to prevent deleting after order complete