Added ssh change function on index, and change repo type in repo edit page. Fixed format of some code as well