add Functions for toggle buttons