Widget rewrite