Rewrite with frontend UI