adding get_widget for backward compatibility