Improve a behavior to toggle a sidebar