Add xlsx download option at AA
Refactor xlsx generator code