changed menu controller to share scope