added render functions to index page