add template and implement index page