be less brittle around style toggling