added edit product and save funtionalities