Changed Layout of the text dialog