Make the code a little prettier
Remove setting and calculate number of lines from display properties