Some fixes

* remove all ~ files
* refactor index.erb