remove some debug prints.
some refactoring
Show change username button when run as standalone mode. close #371