callbacks on switch menu state