rewrite widgets