code formatting, fix text layout