added newchar dialog, seems to have js error v2