Added getters and setters for widgets.