added scaleFactor and defaultTextColor

changed UI canvas handling in automatic window resizing