Add and use max_pages template setting for space used progress bar