now added fix suggested by Ioannis to make menus work when an entryfunc