bug fixed for editing product: reset form when switch to add product