updated front-end and back-end for index page