update font size and margin