added edit box with two states