fixed error messages and center problem. As well as fixed repo redirect problem