Added viewport initiation into the init-method