corrected an oversight with the product modal save, and made some changes to meet coding standards