Implement replace
Fix cursor IE