fix bugs in editproduct page