Editted designText method