Update title and set viewport