Refactored manage and upload template
added delete and download