add init ui in viewwindow