updated toggle to respond to being inserted in option bar