update front-end for index page and home page