Finalizes demo app (apart from state restoration)