moved canvas viewports to top level