Include purities in API, implement purity switch
Add purity button component
Refactor design