unit publishing widget cleanup