Some widgetset optimization
Needed to switch debug button to PopupView to pass TB tests
Fixes #299
Changed encoder in InputCacheUtil