modify make widget script