added $location parameter back to MenuController