cleaning Inventory controller, fixing form problems