handle scale value in ui file