moving demo to server-side view