callbacks on switch menu state
fix template option
test events execution