added replace & add test for cahce widgets