Fixing the download issue with correct algorithm to find the latest file.
Also adding CSS for the button in the export DAY. Still weekly and monthly
is pending.