Changed it so the user can only export to excel from the Statistics tab