added menu functions. First version