editProducts.jsp refactored