fixed edit question function