refactor all code, use angular-ui-router now, may not work now