added more code to index.phtml