set text style unselectable and made some tiny fixes of code