Common ui code for allocations moved toallocation_cart.inc