work on the toggle to hide and show panels.