added text input dialog replacement for osx + win