creating text layout