added menu and some functionality