changed index page to use index layout