modified gui to work with pallet id