refactor archive template