Finish editing text and formatting layout