updated template and header for appropriate urls