rewrite widget