create and edit product states change