Added switch functionality so that switch settings are saved and extra
buttons' visibility can be toggled.