added menu, but had to resort to globals -- needs cleanup