made so products objects are sent correctly to the modal