Add functionality for toggles