added menu functionality