add interface class for widget