Fixed various issues with the sidebar toggling controller