added some toggle functions.