Improve API for side panel toggle button
Toggle side panels for the Console panel