Rewrite main-component without explicit viewport populating