fixed edit item window bugs