Revert "removed unused method"

This reverts commit b5761153fa43f20c854d1ad8008178e417a8737e.
added widgets client-side code