removed reference counter in widgets, fixed memory leak