added new methods for getting all products and saving product for add or new modes.