Revert "add saveWidget function"

This reverts commit 1f8ad77a3bbe2a37548e1d6cc45b5acb146993e6.