device transaction function & change css font size