adding menu to both the panes