update function menuActive to examples in the documentation