added switch button to statistics