center the text from text edit