text and layout adjustment