added return value for widget::set method