added menu and functions