Fixed some layout issues when writing big ammounts of text

When writing big ammounts of text, the text would trespass the borders.