Added support for deleting widgets