add flush to widget object