Add input and output combo boxes to EditFactoryWidget.
Fix issue where combo boxes would not get repopulated upon leaving and re-entering the building view.