Finish the widget view framework for result GUI

Add WidgetView classes, fix some bugs about data base