build display
correct some bugs