Making changes to index page to correct ruby error.