Implement input download feature
Add input download button and fix the template