Merged event listeners for sidebar toggle button