update sample page with source code