added borders to legend box