added menu functions