added footer template, renamed pagination.