saveAsWidget working properly