refactored param names, implemented TextController