updates to legend box formatting