widget functionality fixed