dev: Rewrite with multiple controllers and $rootScope