rewriting in angular.js. Header linking done