added text selection in preview
Merge branch 'osx'