added more functionality for add/edit product group