Some refactoring with isDirty flag on productlist editing.