add path example to index.html

use different controller for each example