Script execution on widget activation