added some code to control widgets (should you want to).