simplifying _handle_toggle