refactored code to one click download all bank statements