added menu items and callback functions