Added front end code for index page