Add functionality to edit product type