size text appropriately and style detail pane