implemented jo's menu code, ready for commenting