Load viewpage only in GUI thread when the mainwindow has loaded