refactored generic response function
finished creating new product
finished getting produts function