add/edit question logic working