converted all widgets to prototype based format