add widget but it has bug