added newchar dialog, seems to have js error