added main viewport, bugfixes