updated main page to load index layout