upgrade template, widget