modify the index.vm to test the commit function