update index to use main.html