Added tri-state check box to legend

Fixes #827