embed sample in index page