Better widget script management