Rewrite UI using React