Added replace dialog options
Merge remote-tracking branch 'origin/master'
add replace all and replace by instance functinality