fix toggle window binding