fixed the way termbases are created and opened in the controller