Made toggle button better, fixed settings layer visibility behavior when
quickly expanding and collapsing