Add edit condition