add widget skeleton code