Refactor views to use react.