Serve the index page dynamically