updated for header and footer and angularjs