Saving the current open file in the $rootScope so the Dashboard link opens that file.