add history and username editting