Fixed a lot of bugs in the edit page of products