Adding history template and urls.