refactored hideShowColumns to use only one loop and added a workaround for VisitsSummary returning metrics as values in report array