added set-active-function to menu