Added code for index page