Fixed some bugs

- Replaced buttons with a segmentedController
- Fixed pie chart animation speed