Use $rootScope instead of controller to change page title and body class