Make the panel toggle

Adapt to the behaviour panels should have with buttons, as shown with
the downloads panel.