support overall APIs about listener,switch type,button text