Moved upload and download templates out of index