add rollback function and fix some small things, lastly change the view of index.ejs