Save widget data functionality