improved edit product functionality