added menu and delete function