added more utility functions to widgetutils