GUI optimization (number of lines)