Removed unused properties from global scope.
Switch back to normal mode if inputbox is cleared (#55).