added menu function