Made some fixes to the EditItemController.