linked log incoming inventory to control-panel plus other minor refactoring.