added totalHertz of data collection rate and made the ui more stable