added button to index and renderPyramid function