Turn buttons into toggles

Make Legend, Detail and Editor Buttons act like toggles to hide/show
the panel.
Fixed bug with initial display
Merge pull request #14 from regan-sarwas/ToggleButtons

Turn left panel buttons into toggles