Fixed cursor position after replacement. Changed background color when disabled